<template>
  <div>
    <van-nav-bar title="我的任务" right-text="筛选" @click-left="onClickLeft" @click-right="onClickRight">
      <template #left>
        <van-icon name="wap-home-o" size="22" />
      </template>
    </van-nav-bar>

    <van-tabs  color="#1976d2">
      <van-tab title="待处理">待处理内容</van-tab>
      <van-tab title="已处理">已处理内容</van-tab>
    </van-tabs>

    <router-view></router-view>

    <van-tabbar v-model="active">
      <van-tabbar-item name="home" icon="home-o" to="/home/work/suggest/index">我的任务</van-tabbar-item>
      <van-tabbar-item name="search" icon="search">检查列表</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import {Toast} from "vant";

export default {
  name: "Index",
  data() {
    return {
      active: 'home',
    };
  },
  methods: {
    onClickLeft() {
      this.$router.push("/home");
      Toast('返回home');
    },
    onClickRight() {
      Toast('筛选');
    },
  },
}
</script>

<style scoped>

</style>
